<script setup lang="ts">
// withDefaults()
// import
import { ConfigProvider,StyleProvider, App } from 'ant-design-vue';
import zhCN from 'ant-design-vue/es/locale/zh_CN';
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';
import { computed } from "vue";
import { useAppStore } from "@/store";
const appStore = useAppStore()
const theme = computed(()=>{
  return {
    token: {
      colorPrimary: appStore.getColor(),
    },
    components:{

    }
  }
})


dayjs.locale('zh-cn');
</script>

<template>
  <App>
    <ConfigProvider :theme="theme" :locale="zhCN">
      <StyleProvider hash-priority="low">
        <slot></slot>
      </StyleProvider>
    </ConfigProvider>
  </App>
</template>

<style scoped>

</style>